﻿using DevTool.Command;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DevTool.Contraner
{
    public partial class FanYiUserControl : UserControl
    {
        static WebBrowser Browser;
        public FanYiUserControl()
        {
            Browser = new WebBrowser();
            InitializeComponent();
        }

        private void FanYiUserControl_Load(object sender, EventArgs e)
        {
            Browser.Dock = DockStyle.Fill;
            this.panel_body.Controls.Add(Browser);
            var url = ConfigHelper.AppSetting("translation");
            if (!string.IsNullOrEmpty(url))
            {
                Browser.Navigate(url);
            }
        }
    }
}
